package org.jeeasy.generate.generator;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.extern.slf4j.Slf4j;
import org.jeeasy.common.core.annotation.convert.BeanTransfer;
import org.jeeasy.common.core.base.convert.BaseConverter;
import org.jeeasy.common.core.base.convert.BaseTransfer;
import org.jeeasy.generate.domain.GenTableIndex;
import org.mapstruct.Mapper;

@Data
@Slf4j
@EqualsAndHashCode(callSuper = true)
@BeanTransfer(value = IndexContext.Converter.class)
public class IndexContext extends BaseTransfer<GenTableIndex> {


    /**
     * 表ID
     */
    private String tableId;

    /**
     * 索引名称
     */
    private String indexName;

    /**
     * 索引字段
     */
    private String indexFields;

    /**
     * 索引类型
     */
    private String indexType;

    /**
     * 所属部门
     */
    private String sysOrgCode;


    @Mapper
    public interface Converter extends BaseConverter<GenTableIndex, IndexContext> {
    }
}
